package com.blog.dao;


import org.apache.log4j.Logger;
import org.hibernate.Session;
import org.hibernate.SessionFactory;
import org.hibernate.Transaction;
import org.springframework.stereotype.Repository;
import org.springframework.transaction.annotation.Transactional;

import com.blog.entity.User;
import com.blog.util.MyHibernateDaoSupport;
/**
 * 用户账户验证
 * @author Administrator
 *
 */
@Repository
public class UserValiDate extends MyHibernateDaoSupport{
 
	
	 
	
	private final Logger log = Logger.getLogger(getClass());
	
	public Boolean getUser(Object obj){
		return false;
	}
	 
	 
	public final void CreateUser(User obj){
		 
		log.info("USER表	name："+obj.getName()+" password："+obj.getPassWord());
	 
		 
			super.getHibernateTemplate().save(obj);
	 
	}
	public final void ReadUser(){

		
	}
	public final void UpdateUser(){

		
	}
	public final void DeleteUser(){

		
	}
	 
}
